/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DBLayer;

import ModelLayer.Equipment;
import java.util.ArrayList;

/**
 *
 * @author Tommy
 */
public interface IFDBEquipment {
    // get all Equipment
    public ArrayList getAllEquipment(boolean retriveAssociation);
    //get one Equipment having the dno
    public Equipment findEquipment(int dno, boolean retriveAssociation);
    //find one Equipment having the Equipment name
    public Equipment searchEquipmentOnName(String dname, boolean retriveAssociation);
    //insert new Equipment
    public int insert(Equipment eq);
    //update Equipment
    public int update(Equipment eq);
    //delete Equipment
    public int delete(Equipment eq);
}
